package com.xpsoft.oa.model.produce;


import com.google.gson.annotations.Expose;
import com.xpsoft.oa.model.system.AppUser;

/**
 * MaterialPurchaseAdjust Base Java Bean, base class for the.oa.model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 *
 * TODO: add class/table comments
 */
public class MaterialPurchaseAdjust extends com.xpsoft.core.model.BaseModel {

	@Expose
    protected Long id;  
	@Expose
	protected MaterialPurchase materialPurchase;
	@Expose
	protected java.util.Date adjustDate;
	@Expose
	protected String applyReason;
	@Expose
	protected AppUser createUser;
	@Expose
	protected java.util.Date createTime;
	@Expose
	protected Long processRunId;


	/**
	 * Default Empty Constructor for class MaterialPurchaseAdjust
	 */
	public MaterialPurchaseAdjust () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class MaterialPurchaseAdjust
	 */
	public MaterialPurchaseAdjust (
		 Long in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 	 * @return Long
     * @hibernate.id column="id" type="java.lang.Long" generator-class="native"
	 */
	public Long getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Long aValue) {
		this.id = aValue;
	}	


	public MaterialPurchase getMaterialPurchase() {
		return materialPurchase;
	}

	public void setMaterialPurchase(MaterialPurchase materialPurchase) {
		this.materialPurchase = materialPurchase;
	}

	/**
	 * 调整日期	 * @return java.util.Date
	 * @hibernate.property column="adjustDate" type="java.util.Date" length="10" not-null="false" unique="false"
	 */
	public java.util.Date getAdjustDate() {
		return this.adjustDate;
	}
	
	/**
	 * Set the adjustDate
	 */	
	public void setAdjustDate(java.util.Date aValue) {
		this.adjustDate = aValue;
	}	

	/**
	 * 调整原因	 * @return String
	 * @hibernate.property column="applyReason" type="java.lang.String" length="65535" not-null="false" unique="false"
	 */
	public String getApplyReason() {
		return this.applyReason;
	}
	
	/**
	 * Set the applyReason
	 */	
	public void setApplyReason(String aValue) {
		this.applyReason = aValue;
	}	


	public AppUser getCreateUser() {
		return createUser;
	}

	public void setCreateUser(AppUser createUser) {
		this.createUser = createUser;
	}

	/**
	 * 申请时间	 * @return java.util.Date
	 * @hibernate.property column="createTime" type="java.util.Date" length="19" not-null="false" unique="false"
	 */
	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	/**
	 * Set the createTime
	 */	
	public void setCreateTime(java.util.Date aValue) {
		this.createTime = aValue;
	}	

	/**
	 * 	 * @return Long
	 * @hibernate.property column="processRunId" type="java.lang.Long" length="19" not-null="false" unique="false"
	 */
	public Long getProcessRunId() {
		return this.processRunId;
	}
	
	/**
	 * Set the processRunId
	 */	
	public void setProcessRunId(Long aValue) {
		this.processRunId = aValue;
	}	

}
